package com.cjx.starsapisdk.client;

import cn.hutool.http.HttpUtil;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * @author cjx
 * @description 发送http请求工具类
 * @createDate 2024/5/6 13:44
 **/
@Data
@AllArgsConstructor
public class StarsApiClient {
    private String accessKey;
    private String secretKey;

    public String sentGetNameHttp(String name){
        Map<String, Object> param = new HashMap<>();
        param.put("name", name);
        String response = HttpUtil.get("http://localhost:8090/naem", param);
        System.out.println("response = " + response);
        return response;

    }

}
